package com.loser.csp.service.backmanager.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.loser.csp.dal.dao.AdviseMapper;
import com.loser.csp.dal.model.Advise;
import com.loser.csp.service.backmanager.AdviseServices;

@Component("adviseServices")
public class AdviseServicesImpl implements AdviseServices {
    @Autowired
    private AdviseMapper adviseMapper;
    
    @Override
    public int deleteByAdviseid(Integer adviseid) {
        return adviseMapper.deleteByAdviseid(adviseid);
    }

    @Override
    public int insert(Advise record) {
        return adviseMapper.insert(record);
    }

    @Override
    public int insertSelective(Advise record) {
        return adviseMapper.insertSelective(record);
    }

    @Override
    public Advise selectByAdviseid(Integer adviseid) {
        return adviseMapper.selectByAdviseid(adviseid);
    }

}
